<!-- 损失物品-首饰文物(龙文友) -->
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	template="/layout/page/form/page-fieldset-template.xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sinox="http://www.sinosoft.com.cn/sinox">
	
	<ui:param name="jewelryViewBean" value="#{commonContentViewBean}"/>
	<ui:param name="compId" value="#{commonContentViewBean.id}" />
	<ui:param name="compTitle" value="首饰文物" />
	<ui:param name="compToggleable" value="true" />
    <ui:param name="pvb" value="#{commonContentViewBean.parent}"/>
	
	<ui:define name="compHiddens">
	 	
	</ui:define>
	
	<ui:define name="compContent">
		<ui:decorate template="/layout/input/editable-template.xhtml">
			<!-- 第一行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="casesn" />
				<ui:param name="compBean1Lable" value="案件编号" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="casesn" value="#{jewelryViewBean.fields.casesn}" readonly="true"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第二行 -->
			 <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="type" />
				<ui:param name="compBean1Lable" value="类型" />
				<ui:define name="compBean1Content">
					<sinox:codeSetInputTree id="type" codeSetId="id_c_wwss" value="#{jewelryViewBean.fields.type}" formId="#{commonContentViewBean.id}_form"/>
				</ui:define>
			</ui:decorate>
			
			<!-- 第三行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="texture" />
				<ui:param name="compBean1Lable" value="质地" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="texture" value="#{jewelryViewBean.fields.texture}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第四行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="age" />
				<ui:param name="compBean1Lable" value="产生年代" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="age" value="#{jewelryViewBean.fields.age}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第五行 -->
			  <ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="author" />
				<ui:param name="compBean1Lable" value="作者" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="author" value="#{jewelryViewBean.fields.author}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第六行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="photo" />
				<ui:param name="compBean1Lable" value="照片" />
				<ui:define name="compBean1Content">
					<p:fileUpload
						fileUploadListener="#{jewelryViewBean.handleFileUpload}" mode="advanced"
						sizeLimit="1000000" allowTypes="png,gif,jpg">
					</p:fileUpload>
				</ui:define>
			</ui:decorate>
			
			<!-- 第七行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="normal" />
				<ui:param name="compBean1Id" value="amount" />
				<ui:param name="compBean2Id" value="weight" />
				<ui:param name="compBean1Lable" value="数量" />
				<ui:param name="compBean2Lable" value="重量" />
				
				<ui:define name="compBean1Content">
					<h:inputText id="amount" value="#{jewelryViewBean.fields.amount}" />
				</ui:define>
				<ui:define name="compBean2Content">
					<h:inputText id="weight" value="#{jewelryViewBean.fields.weight}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第八行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single" />
				<ui:param name="compBean1Id" value="producingarea" />
				<ui:param name="compBean1Lable" value="产地" />
				
				<ui:define name="compBean1Content">
					 <h:inputText id="producingarea" value="#{jewelryViewBean.fields.producingarea}" />
				</ui:define>
			</ui:decorate>
			
			<!-- 第九行 -->
			<ui:decorate template="/layout/input/editable-2c-custom-template.xhtml">
				<ui:param name="compType" value="single-all" />
				<ui:param name="compBean1Id" value="annex" />
				<ui:param name="compBean1Lable" value="特征描述" />
				
				<ui:define name="compBean1Content">
				<h:inputTextarea
					 style="width:700px;height:100px;overflow:auto;"
					 id="annex" effectDuration="400"
					 value="#{jewelryViewBean.fields.annex}" />
				</ui:define>
			</ui:decorate>
		</ui:decorate>
		
	</ui:define>



	<ui:define name="compButtons">
			<p:commandButton
			title="保存"
			actionListener="#{caseGoodsManager.save}"
			onclick="#{compId}_dialog.hide();"
			onstart="this.disabled=true"
			image="./img/icons/add.png" value="保存" style="margin:5px;"
			>
			<h:inputHidden id="#{compId}" value="ssww" />
		</p:commandButton>
		<p:commandButton title="重置" image="ui-icon-disk" value="重置"></p:commandButton>
	</ui:define>
</ui:composition>
